#include "XSystem/XCore.h"
#include "GLoginBackground.h"

// Initialize the window
GLoginBackground::GLoginBackground(XResourcesManager *data) : XWindow(data)
{
	// Default values
    x_positionX = 0;
    x_positionY = 0;
    x_width = 800;
    x_height = 600;

	x_static = true;

	x_windowBackground.SetImage(x_data->GetImage("gui/loginbg.jpg"));
}

// Draws the window
void GLoginBackground::Draw()
{
    if (x_visible)
    {
        XWindow::Draw();
    }
}

// Refresh the window
void GLoginBackground::CheckState(const sf::Input &input)
{
	// Check the state of the widgets
    XWindow::CheckState(input);
}
